package main

import "fmt"

// import "Golang/Projects/Chapter11/extenddemo03/model"

func main() {
	stu := Student{}
	stu.age = 10 //继承时，无论大小写都能继承
	stu.Name = "就近原则"
	stu.Person.Name = "Person的Name"
	fmt.Println(stu.Name)
	fmt.Println(stu.Person.Name)
	stu.age = 11.1
	stu.Person.age = 10
	fmt.Println(stu.age)
	fmt.Println(stu.Person.age)
	//

}
